﻿using System;
using System.Collections.Generic;
using System.Text;
using Pahan.McuFusion.Common;

namespace Pahan.McuFusion.FusionBoot
{
    public interface IFusionBootAdapter : IHardwareAdapter
    {
        void WriteByte(byte value);

        void Write(IList<byte> data);

        void WriteWithControlSum(IList<byte> data);

        void WriteWithControlSum(IList<byte> data, byte controlSumInitial);

        byte ReadByte();

        void Read(IList<byte> data);

        bool ReadWithControlSum(IList<byte> data);

        bool ReadWithControlSum(IList<byte> data, byte controlSumInitial);

        void DiscardInputBuffer();

        void DiscardOutputBuffer();
    }
}
